import dayjs from 'dayjs';

export default [
  {
    title: '生产型号',
    key: 'moduleNo'
  },
  {
    title: '录入时间',
    key: 'modifyTime',
    customRender: row => {
      return dayjs(row.modifyTime).format('YYYY-MM-DD HH:mm:ss');
    }
  },
  { title: '检验类型', key: 'inspectType' },
  { title: '检验数量(PNL)', key: 'quantity' },
  { title: '工程图变更检查', key: 'drawingChangeChecks' },
  { title: '板厚(mm)要求', key: 'thickness' },
  { title: '板厚(mm)实际1', key: 'plateThicknessActualValue' },
  { title: '板厚(mm)实际2', key: 'plateThicknessActualValue2' },
  { title: '板厚(mm)实际3', key: 'plateThicknessActualValue3' },
  { title: '板厚(mm)实际4', key: 'plateThicknessActualValue4' },
  { title: '板厚(mm)实际5', key: 'plateThicknessActualValue5' },
  { title: '铜厚(oz)要求', key: 'drillOutCopper' },
  { title: '铜厚(oz)实际1', key: 'foilThicknessActualValue' },
  { title: '铜厚(oz)实际2', key: 'foilThicknessActualValue2' },
  { title: '铜厚(oz)实际3', key: 'foilThicknessActualValue3' },
  { title: '裁磨尺寸要求(mm)', key: 'grindingSizeRequireValue' },
  { title: '裁磨尺寸实际(mm)', key: 'grindingSizeActualValue' },
  { title: '靶孔孔径要求(mm)', key: 'targetApertureRequiredValue' },
  { title: '靶孔孔径实际(mm)', key: 'targetApertureActualValue' },
  { title: '判定', key: 'result' },
  { title: '不良数', key: 'ngNum' },
  { title: '不良率', key: 'ngRatio' },
  {
    title: '班别',
    key: 'shiftType',
    customRender: row => {
      return ['白班', '夜班'][row.shiftType];
    }
  },
  {
    title: '检验人',
    key: 'operator'
  },
  {
    title: '审核人',
    key: 'checker'
  },
  {
    title: '审核时间',
    key: 'checkTime'
  },
  {
    title: '系统MI无卤素要求',
    key: 'pressFitHasHalogen'
  },
  {
    title: '备注',
    key: 'remark'
  }
];
